package ar.edu.itba.pod.legajo47573;

import ar.edu.itba.event.EventInformation;

public class ProcessedEvent {

	private Long timestamp;
	private EventInformation event;

	public ProcessedEvent(EventInformation event, long timestamp){
		this.event = event;
		this.timestamp = timestamp;
	}

	public long getTimestamp(){
		return timestamp;
	}

	public EventInformation getEvent(){
		return event;
	}

	@Override
	public int hashCode(){
		return event.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		boolean ans = event.equals(obj);
		return ans;
	}

	@Override
	public String toString(){
		return event.toString();
	}
}
